package com.itlaobing.spring.ioc.autowire;


import java.io.Serializable;

public class Employee implements Serializable {

    private Integer id;
    private String name;

    // 维护从 Employee 到 Department 的 多对一 关联关系
    private Department department; // 作为一个员工需要知道自己在哪个部门

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }
}